package com.sinothk.fc.storeOrderDetail.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 门店销售记录表
 * @Author: Liangyt
 * @Date: 2022-09-14
 * @Version: V1.0
 */
@Data
public class StoreOrderDetailVO implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 状态:0正常1退货
     */
    @ApiModelProperty(value = "状态:0正常1退货")
    private Integer state;

    /**订单名称*/
    @Excel(name = "订单名称", width = 15)
    @ApiModelProperty(value = "订单名称")
    private String orderName;
    /**
     * 订单ID
     */
    @Excel(name = "门店ID", width = 15)
    @ApiModelProperty(value = "门店ID")
    private String storeId;
    /**
     * 订单ID
     */
    @Excel(name = "订单ID", width = 15)
    @ApiModelProperty(value = "订单ID")
    private String orderId;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 操作人
     */
    @ApiModelProperty(value = "操作人")
    private String optBy;
    /**交易对象ID*/
    @Excel(name = "交易对象ID", width = 15)
    @ApiModelProperty(value = "交易对象ID")
    private String traderId;
    /**交易对象姓名*/
    @Excel(name = "交易对象姓名", width = 15)
    @ApiModelProperty(value = "交易对象姓名")
    private String traderName;
    /**交易对象头像*/
    @Excel(name = "交易对象头像", width = 15)
    @ApiModelProperty(value = "交易对象头像")
    private String traderAvatar;
    /**交易对象电话*/
    @Excel(name = "交易对象电话", width = 15)
    @ApiModelProperty(value = "交易对象电话")
    private String traderPhone;

    /**
     * 当天销售额
     */
    @ApiModelProperty(value = "当天销售额")
    @TableField(exist = false)
    private Long dayIncome;

    private Long total;
    private Long flagTotal;
}
